﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using System.Text;
using System.Threading.Tasks;
using StyleMVVM.Data.Activation;

namespace StyleMVVM.DependencyInjection
{
	public sealed class SimpleExportActivator : IExportActivator
	{
		private object exportValue;

		public SimpleExportActivator(object exportValue)
		{
			this.exportValue = exportValue;
		}

		public IDependencyInjectionContainer Container { get; set; }

		public IActivationService ActivationService { get; set; }

		public object Activate(IInjectionContext injectionContext, [ReadOnlyArray] object[] constructorParams)
		{
			return exportValue;
		}
	}
}